package com.hdlang.assists.ad.ui.activity

import android.content.Intent
import android.os.Bundle
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import com.hdlang.assists.ad.R
import com.hdlang.assists.ad.dao.service.TaskService
import com.hdlang.assists.ad.dao.step.JRNewsStep
import com.ven.assists.stepper.StepManager

class MainActivity : BaseActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main)) { v, insets ->
            val systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars())
            v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom)
            insets
        }
        startService(Intent(this, TaskService::class.java))
    }
}